<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%@ taglib tagdir="/WEB-INF/tags" prefix="p" %>
<s:include value="/js/validators/user.jsp"></s:include>
<div class="f_l margin1" style="width:100%">
    <h1 style="height:24px;color:red" align="center" id="errorInfo">${failInfo }</h1>
   <div style="height:24px;color:red;font-weight:bold" align="left">新增职位</div>
    <s:form id="submitForm" action="position!save" method="post" theme="simple">
    <input type="hidden" id="position.companyId" name="position.companyId" value="${companyId}">
    <table width="100%">
    	<tbody>
    		<tr>
    			<td width="8%"><s:text name="名称"/>：</td>
    			<td><input type="text" name="position.name"></td>
    			<td width="8%"><s:text name="编号"/>：</td>
    			<td><input type="text" name="position.positionNo">  </td>
    		</tr>
    		<tr>
    			<td><s:text name="上级"/>：</td>
    			<td> 
	    			<select name="position.superiorId" >
	                	<option value="">无</option>
	                	<s:iterator value="allPositions" status="status">
	                   	 <option value="${id}">${name}</option>
	               		</s:iterator>
	            	</select>
            </td>
    			<td><s:text name="类型"/>：</td>
    			<td><input type="text" name="position.type"></td>
    		</tr>
    		<tr>
    			<td colspan="2" align="right">
    				 <input type="submit" value="确认" onclick="return doValidate(event);" />
		            &nbsp;&nbsp;
  			</td>
    			<td colspan="2">
    				<input type="button" value="取消" onclick="javascript:history.back(-1);"/>
    			</td>
    		</tr>
    	</tbody>
    </table>      
    </s:form>
  </div>
